|
|
- Mindstorms -- Building a robot
- Next, We'll create a robot which follows a line
- Simple tank of a robot: two tank treads attached to the sides of the RCX, one motor each
- On the front, we'll put a light sensor pointing towards the ground
- We'll assume a few things about the line: a dark line on a light background, that the line doesn't double back, and the line's edge is regular
- These assumptions allow us to use an intersting strategy: follow one side of the line
- We're always on the left edge, so turn left if it's too light, and right if it's too dark
- If we weren't using the edge, we'd have trouble determining which direction the bot should turn to adjust to the line
|
|